ue.ready(function() {
	// 设置编辑器的内容
	ue.setContent('hello');
	
	// 获取纯文本内容，返回: hello
	var txt = ue.getContentTxt();
	
	$("#send").click(function() {
		// 获取html内容，返回: <p>hello</p>
		var html = ue.getContent();
		var to = $("#to").val();
		var copyTo = $("#copyTo").val();
		var bcc = $("#bcc").val();
		var subject = $("#subject").val();
		alert(html+","+to+","+copyTo+","+bcc+","+subject);
		$.ajax({
			type : 'post',
			url : contextPath+'/write/sendMail.shtml',
			data : {
				'body' : html,
				'to':to,
				'copyTo':copyTo,
				'bcc':bcc,
				'subject':subject
			},
			cache : false,
			dataType : 'json',
			success : function(data) {

			},
			error : function() {
			}
		})
	});
});